package com.ylh;

import com.ylh.core.Code;
import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableConfigurationProperties(Code.class)
public class KhApplication {

    @Bean
    public Mapper mapper(){
        return new DozerBeanMapper();
    }

    public static void main(String[] args) {
        SpringApplication.run(KhApplication.class, args);
    }

}
